<!DOCTYPE html>
<html lang="zh-cn" xmlns:th="http://www.thymeleaf.org">

<head th:insert="~{admin/commons_admin::head}">
    <title>后台模板管理系统</title>
</head>

<body>
<!--通用顶栏-->
<div th:insert="~{admin/commons_admin::top_menu}"></div>

<!--主体-->
<div id="content">
    <!--侧边栏-->
    <div class="left_menu" th:replace="~{admin/commons_admin::left_menu}"></div>

    <div class="m-right">

        <div class="right-nav">
            <ul>
                <li style="margin-left:25px;">您当前的位置：</li>
                <li><a href="#">游客管理</a></li>
                <li>></li>
                <li><a href="#">游客一览</a></li>
            </ul>
        </div>

        <!--主体内容-->
        <div class="main">
            <div class="table-responsive">
                <table class="table table-striped table-sm">
                    <thead>
                    <tr>
                        <th>游客ID</th>
                        <th>游客姓名</th>
                        <th>游客性别</th>
                        <th>游客联系方式</th>
                        <th>游客身份证号</th>
                        <th>登记时间</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr th:each="tourist:${tourists}">
                        <td th:text="${tourist.getTouristId()}"></td>
                        <td th:text="${tourist.getTouristName()}"></td>
                        <td th:text="${tourist.getTouristSex()==1?'男':'女'}"></td>
                        <td th:text="${tourist.getTouristPhone()}"></td>
                        <td th:text="${tourist.getTouristIdentidycard()}"></td>
                        <td th:text="${#dates.format(tourist.getCreateTime(),'yyyy-MM-dd HH:mm:ss')}"></td>
                        <td>
                            <a class="btn btn-sm btn-success" th:href="@{/admin/tourist/toUpdate/}+${tourist.getTouristId()}">编辑</a>
                            <a class="btn btn-sm btn-danger" th:href="@{/admin/tourist/delete/}+${tourist.getTouristId()}">删除</a>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>


<!--通用footer-->
<div th:insert="~{admin/commons_admin::footer}"> </div>
</body>
</html>
